package com.xique.park.constant;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Administrator
 * description:
 * path: park2020-com.jzy.constant-RedisConstants
 * date: 2020/7/9 18:45
 */
public interface RedisConstants {

    /**
     * jzy前缀
     */
    String REDIS_COMM_PREFIX = "jzy:";

    /**
     * 下发命令消息id前缀--用于保存和获取消息应答
     */
    String REDIS_COMMAND_RESP_PREFIX = "command:code:msgid:";

    /**
     * 下发异步命令，消息内容缓存
     */
    String REDIS_COMMAND_DATA_PREFIX = "command:async:";

    /**
     * 下发异步命令，消息下发状态缓存
     */
    String REDIS_COMMAND_STATUS_PREFIX = "command:status:";

    /**
     * redis中的图片保存key：设备编号+消息id
     */
   String REDIS_PIC_CODE_MSGID_PREFIX = "pic:code:msgid:";

    /**
     * 设备状态前缀
     */
    String REDIS_DEVICE_STATUS_PREFIX = "device:status:code:";

    /**
     * 通道处理车牌前缀
     */
    String REDIS_LANE_PLATE_PREFIX = "lane:plate:";

    /**
     * 通道地感状态前缀
     */
    String REDIS_LANE_SENSE_PREFIX = "lane:sense:";

    /**
     * pp订单支付结果通知应答前缀
     */
    String REDIS_PAYMENT_UUID_ORDER_PREFIX = "pyun:payment:";

    //与在场车辆和车位数统计相关的key统一包含parkon，方便redis统一过滤操作
    String REDIS_PARK_ON_PREFIX = "ParkOn:";
    /**
     * 某车场总车位数前缀
     */
    String REDIS_PARK_TOTAL_SPACES_PREFIX = "totalspas:";
    /**
     * 某车场在场车辆数前缀
     */
    String REDIS_PARK_ON_CARCNT_PREFIX = "oncarcnt:";
    /**
     * 某车场剩余车位数前缀
     */
    String REDIS_PARK_REMAIN_SPACES_PREFIX = "remspas:";
    /**
     * 某车牌的在场信息前缀
     */
    String REDIS_PARKON_PARKID_PLATE_PREFIX = "plate:";

    /**
     * 停车订单前缀
     */
    String REDIS_PARKINGORDER_PREFIX = "parkingOrder:";

    /**
     * 支付订单前缀
     */
    String REDIS_PAYORDER_PREFIX = "payOrder:";

    /**
     * 通道停车订单前缀
     */
    String REDIS_LANE_PARKINGORDER_PREFIX = "lane:parkingOrder:";

    String REDIS_LANE_INSIDEINOUT_PREFIX = "lane:insideInOut:";

    /****************************人脸门禁 redis key***************************/
    /**
     * 人脸门禁设备状态前缀
     */
    String REDIS_FACE_STATUS_PREFIX = "face:device:status:";
    /**
     * 下发命令消息id前缀--用于保存和获取消息应答
     */
    String REDIS_FACE_COMMAND_ACK_PREFIX = "face:command:ack:";

    /**
     * 记录下发到设备是否成功状态前缀
     */
    String REDIS_FACE_REC_STATUS_PREFIX = "face:rec:";

    /**
     * 人脸等待下发信息前缀
     */
    String REDIS_FACE_INFO_PREFIX = "face:info:";

    public static final String REDIS_PARK_MINI_AUTH_CODE_PREFIX = "park:mini:authCode:phone:";

}
